import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  httpError:{
    hasError:false,
    status:'',
    statusText:''
  },
  token: '123456'
}

const mutations = {
  ON_HTTP_ERROR(state,payload){
    state.httpError = payload
  }
}

export default new Vuex.Store({
  state,
  mutations
})
